/**
 * 实现对于客户端发送的http get请求的解析及处理
 * 利用主状态机和从状态机
 * @author: sundx
 * @date: 2020-05-10 04:03:59
 * @Last Modified by: sundx
 * @Last Modified time: 2020-05-11 04:02:31
 * clang++ -std=c++11 -g -o test http_getonly.cpp http_server_test.cpp
 * tcp_server_test.cpp
 */

#include "http_server_test.h"

int main(int argc, char *argv[]) {
  sdx::HttpServer httpServer;
  httpServer.createSocket();
  httpServer.bindIp();
  httpServer.listenData();
  httpServer.acceptMessage();
  httpServer.replyContent();
  httpServer.closeAccept();
  httpServer.closeSocket();
  return 0;
}